package org.zoomdev.zoom.common.exceptions;

/**
 * 可以展示给用户看的异常
 */
public class ServiceException extends RuntimeException implements CodeException {
    private final String message;
    private final String code;

    public ServiceException(String message) {
        this(null, message);
    }

    public ServiceException(String code, String message) {
        this.code = code;
        this.message = message;
    }


    public String getCode() {
        return code;
    }


    @Override
    public String getMessage() {
        return message;
    }
}
